package com.example.zhaojianxu.signin.signIn.sign.viewModel

import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import com.example.zhaojianxu.signin.signIn.sign.model.SignEntity
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch

class SignViewModel: ViewModel(){

    val mSign = MutableLiveData<List<SignEntity>>()

    fun refresh(){
        GlobalScope.launch {
            mSign.postValue(SignRequest().getSignList().await())
        }
    }
}